package com.itheima.HomeWork.homework02;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Demo {
    public static void main(String[] args) {
        HashMap<String, String> map1 = new HashMap<>();
        map1.put("001", "李晨");
        map1.put("002", "范冰冰");
        HashMap<String, String> map2 = new HashMap<>();
        map2.put("001", "马云");
        map2.put("002", "马化腾");
        HashMap<String, HashMap<String, String>> hashMapHashMapHashMap = new HashMap<>();
        hashMapHashMapHashMap.put("Java基础班:", map1);
        hashMapHashMapHashMap.put("Java就业班:", map2);
        Set<String> strings = hashMapHashMapHashMap.keySet();
        for (String string : strings) {
            System.out.println(string);
            map1.forEach((k, v) -> System.out.println(k + " " + v));
        }
        map2.forEach((k, v) -> System.out.println(k + " " + v));


    }
}
